#ifndef DEFINES_H
#define DEFINES_H


/* constant definition */
#define DATA_SIZE 40



extern void
timing_start(void);
extern void
timing_end(void);

/* expression expand */
#define TIME_START timing_start()
#define TIME_END timing_end()
#define PERFORMANCE(fun, data, len, counts) \
  TIME_START;                               \
  while(counts-- > 0)  {                    \
    (*fun)(data,len);                       \
  }                                         \
  TIME_END;

#endif

